package com.example.myandroid;

import java.util.Date;

import org.mockito.Mockito;

import android.util.Log;

import roboguice.config.AbstractAndroidModule;
import roboguice.util.Ln;

public class MyTestModule extends AbstractAndroidModule {


    @Override protected void configure() {
    	Date date = Mockito.mock(Date.class);
    	Mockito.when(date.toString()).thenReturn("Mock!!!");
        bind(Date.class).toInstance(date);
        bind(Ln.BaseConfig.class).toInstance(new MyAppliactionLoggerConfig());
    }


    static class MyAppliactionLoggerConfig extends Ln.BaseConfig {
        public MyAppliactionLoggerConfig() {
            super();
            this.packageName = "MyApplication";
            this.minimumLogLevel = Log.VERBOSE;
            this.scope = "APP";
        }
    }
}
